<template>
  <el-card class="box-card" shadow="hover">
    <div class="number-data-card">
      <div class="number-show">
        <p class="number">{{ number }}</p>
        <p class="title">{{ title }}</p>
      </div>
      <div class="number-img">
        <img :src="img" alt="" width="48" />
      </div>
    </div>
  </el-card>
</template>

<script>
// import default_img from '@/assets/icon/data.png'

export default {
  name: 'NumDataCard',
  props: {
    img: {
      default: new URL('@/assets/icon/data.png', import.meta.url).href,
      type: String
    },
    number: {
      default: '',
      type: [String, Number]
    },
    title: {
      default: '',
      type: String
    }
  },
  data() {
    return {}
  },
  computed: {
    // device() {
    //   return this.$store.state.app.device
    // }
  },
  mounted() {},
  methods: {}
}
</script>

<style scoped lang="scss">
.mobile ::v-deep.el-card__body {
  padding: 10px;
}
.number-data-card {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .number-show {
    .number {
      font-size: 18px;
      font-weight: 600;
    }
    .title {
      font-size: 14px;
      color: #999;
    }
    padding: 10px;
  }
  .number-img {
    padding: 10px;
  }
}
</style>
